#-*- coding:utf-8 –*-

import pandas as pd
from pandas import Series,DataFrame

print "Series 类似于一维数组的对象".decode('utf-8').encode('cp936')

obj1 = Series([1, 2, 3, 4])
print obj1


obj2 = Series(["张三", "李四", "王五", "赵六"], index=["11", "22", "33", "44"])
print obj2

print "通过索引方式取值".decode('utf-8').encode('cp936')
print obj2["22"].decode('utf-8').encode('cp936')